﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Robocode;

namespace PKoSTroN
{
    public class PKoSTroN : Robot
    {
        public override void Run( )
        {
            TurnLeft( Heading - 90 );
            TurnGunRight( 90 );

            while ( true )
            {            
                Ahead( 5000 );
                TurnRight( 90 );
            }
        }

        // Robot event handler, when the robot sees another robot
        public override void OnScannedRobot( ScannedRobotEvent e )
        {
            // We fire the gun with bullet power = 1
            Fire( 1 );
        }
    }
}
